<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;}
        .div{
            width: 300px;position: relative;
            }
        .aa{background:skyblue;margin-right:100px;}
        .bb{background:pink;position:absolute;top:0;right:0;width:100px;}
    </style>

</head>
<body>
<div class="div">
    <div class="aa">2222</div>
    <div class="bb">333</div>
</div>
</body>
</html>